#include "MyDoubleSlider.h"

MyDoubleSlider::MyDoubleSlider(QWidget* parent/* =0 */):QSlider(parent)
{

}
MyDoubleSlider::~MyDoubleSlider()
{

}
void MyDoubleSlider::setMyRange(double min,double max)
{
	setRange(int(min*100),int(max*100));
}
void MyDoubleSlider::setMySingleStep(double step)
{
	setSingleStep(int(step*100));
}
void MyDoubleSlider::setMySliderPosition(double positon)
{
	setSliderPosition(int(positon*100));
}
void MyDoubleSlider::setMyValue(double val)
{
	setValue(int(val*100));
}
MyDoubleSpinBox::MyDoubleSpinBox(QWidget* parent/* =0 */):QDoubleSpinBox(parent)
{

}
MyDoubleSpinBox::~MyDoubleSpinBox()
{

}
void MyDoubleSpinBox::setMyValue(int val)
{
	setValue((double)val/100);
}